package com.dragon.graduation.projectProgress.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dragon.graduation.projectProgress.controller.dto.ProjectProgressSearchDTO;
import com.dragon.graduation.projectProgress.controller.vo.ProjectProgressVO;
import com.dragon.graduation.projectProgress.entity.ProjectProgressEntity;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 毕设进度表 服务类
 * </p>
 *
 * @author dragon
 * @since 2025-02-28 21:20:30
 */
public interface ProjectProgressService extends IService<ProjectProgressEntity> {

    Page<ProjectProgressVO> findPages(Page<ProjectProgressEntity> entityPage, ProjectProgressSearchDTO searchDTO);

    /**
     *
     * @author lsc
     * @since 2025/3/23 13:05
     * @param studentId 学生id
     * @param projectId 题目id
     * @param type 类型 1.选题申请 2。开题报告 3.中期答辩 4.终期答辩 5.毕业材料
     * @param status 状态 0.待审核 1.通过 2.拒绝
     **/
    void record(Integer studentId, Integer projectId, int type, int status);

    ProjectProgressEntity findByProjectIdAndStudentId(Integer projectId, Integer roleId);
}
